package com.idanchuang.component.gauss.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: chac
 * @Description:
 * @Date: 2021/2/5 13:57
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface Idempotent {

    /**
     * spel表达式获取key
     * @return
     */
    String spelKey() default "";

    /**
     * 过期时间，单位秒
     * @return
     */
    long expireTime() default 0L;

}
